package com.tj.collection.db.admin.dao;

import com.tj.collection.db.admin.entity.AuthRolePermissionEntity;
import com.tj.collection.db.admin.entity.AuthRolePermissionEntityConditions;
import com.tj.collection.common.old.BaseDAO;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: sm
 * Date: 2017/3/11
 * Time: 上午11:06
 */
public interface AuthRolePermissionDAO extends BaseDAO<AuthRolePermissionEntity, Long, AuthRolePermissionEntityConditions> {

    /**
     *
     * @param roleId
     * @return
     */
    List<AuthRolePermissionEntity> getListByRoleId(Long roleId);

    /**
     *
     * @param roleId
     * @return
     */
    void deleteByRoleId(Long roleId);

}
